﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PollRanking.aspx.cs" Inherits="VoteList.Layouts.VoteList.PollRanking"
    DynamicMasterPageFile="~masterurl/default.master" %>

<asp:content id="PageHead" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<style>    
    #container
    {
        width: 928px;
        padding: 30px;
        border: 1px solid #d6d6d6;
        margin-left: auto;
        margin-right: auto;
    }
    #innerContainter
    {
        width: 928px;
        border: 0px solid #ededed;
    }
    #innerContainter table
    {
        font-size: 14px;
    }
    #innerContainter td
    {
        text-align: center;
    }
    #innerContainter span
    {
        margin-left: 10px;
        margin-right: 10px;
    }
    .listHeader
    {
        height: 30px;
        background-image: url(Images/Poll_RankingTitle.png);
        background-repeat: no-repeat;
    }
    .listItem
    {
        background-image: url(Images/Poll_RankingLine1.png);
        background-repeat: repeat-y;
        height: 86px;
        background-color: white;
    }
    .listAlternatingItem
    {
        background-image: url(Images/Poll_RankingLine2.png);
        background-repeat: repeat-y;
        height: 86px;
        background-color: #f7f7f7;
    }
    .listFooter
    {
        background-image: url(Images/Poll_RankingDown.png);
        background-repeat: no-repeat;
        height: 3px;
    }
    .vote
    {
        width: 32px;
        height: 19px;
        font-size: 12px;
        background-color: #c4e7e3;
        border: 1px inset #ededed;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .headPicture
    {
        font-size:16px;
        width: 86px;
    }
    .headPicture img
    {
        max-width: 72px;
        max-height: 72px;
        width: expression(this.width >72 ? "72px" : this.width);
        height: expression(this.height >72 ? "72px" : this.height);
    }
    .MedalImage
    {        
        padding:0px;
        margin:0px;        
        }
</style>
</asp:content>
<asp:content id="Main" contentplaceholderid="PlaceHolderMain" runat="server">
    <div id="container">
        <table id="innerContainter" cellpadding="0" cellspacing="0">
            <colgroup>
                <col style="width: 84px;" />
                <col style="width: 503px;" />
                <col style="width: 157px;" />
                <col style="width: 186px;" />
            </colgroup>
            <asp:Repeater ID="repItems" runat="server" OnItemDataBound="repItems_ItemDataBound">
                <HeaderTemplate>
                    <tr>
                        <td colspan="4" class="listHeader">
                        </td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="listItem">
                        <td class="headPicture" runat="server" id="tdHead">
                            <asp:Image ID="imgMedal" CssClass="MedalImage" runat="server" />
                            <asp:Label ID="lbOrder" runat="server" Text="" Visible="false"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" runat="server" id="tbName">
                                <col style="width: 86px" />
                                <col style="width: 100px" />
                                <col style="width: 231px" />
                                <tr>
                                    <td>
                                        <div class="headPicture">
                                            <asp:Image ID="imgHead" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "HeadImage")%>'/>
                                        </div>
                                    </td>
                                    <td style="width: 100px; text-align:left">
                                        <span>
                                            <%#DataBinder.Eval(Container.DataItem, "UserName")%></span>
                                    </td>
                                    <td>
                                        <span>
                                            <%#DataBinder.Eval(Container.DataItem, "AccountName")%></span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <span><%#DataBinder.Eval(Container.DataItem, "Location")%></span>
                        </td>
                        <td>
                            <div class="vote">
                                <%#DataBinder.Eval(Container.DataItem, "Vote")%></div>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="listAlternatingItem">
                        <td class="headPicture" runat="server" id="tdHead">
                            <asp:Image ID="imgMedal" CssClass="MedalImage" runat="server" />
                            <asp:Label ID="lbOrder" runat="server" Text="" Visible="false"></asp:Label>
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0" runat="server" id="tbName">
                                <col style="width: 86px" />
                                <col style="width: 100px" />
                                <col style="width: 231px" />
                                <tr>
                                    <td>
                                        <div class="headPicture">
                                        <asp:Image ID="imgHead" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "HeadImage")%>'/>                                            
                                        </div>
                                    </td>
                                    <td style="width: 100px; text-align:left;">
                                        <span>
                                            <%#DataBinder.Eval(Container.DataItem, "UserName")%></span>
                                    </td>
                                    <td>
                                        <span>
                                            <%#DataBinder.Eval(Container.DataItem, "AccountName")%></span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <span><%#DataBinder.Eval(Container.DataItem, "Location")%></span>
                        </td>
                        <td>
                            <div class="vote">
                                <%#DataBinder.Eval(Container.DataItem, "Vote")%></div>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                    <tr>
                        <td colspan="4" class="listFooter">
                        </td>
                    </tr>
                </FooterTemplate>
            </asp:Repeater>
            <tr><td colspan="4" style=" text-align:left">
            <br /><br />
            <a href="/poll/_layouts/VoteList/votePage.aspx"><img src="/_layouts/VoteList/Images/ButtonVote.png" alt="" style="border:0px" /></a>
            </td></tr>
            <tr><td colspan="4" style="Height:140px;">
            </td></tr>
        </table>
</div>
</asp:content>
<asp:content id="PageTitle" contentplaceholderid="PlaceHolderPageTitle" runat="server">
比赛名次
</asp:content>
<asp:content id="PageTitleInTitleArea" contentplaceholderid="PlaceHolderPageTitleInTitleArea"
    runat="server">
比赛名次
</asp:content>
